package com.zenchn.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * HttpLoginResult : 响应的结果对象
 *
 * @author dingxinfa
 * @date 2020-04-17
 */
@ApiModel(value="通用登录响应结果对象",description="通用登录响应结果对象")
public class HttpLoginResult extends HttpResult {

    @ApiModelProperty(value="访问令牌")
    private Serializable token;

    @ApiModelProperty(value="角色列表")
    private Set<String> roleList;

    @ApiModelProperty(value="权限列表")
    private Set<String> authList;


    public HttpLoginResult() {super();}

    public HttpLoginResult(String path) {
        super.setPath(path);
    }

    public Serializable getToken() {
        return token;
    }

    public void setToken(Serializable token) {
        this.token = token;
    }

    public Set<String> getRoleList() {
        return roleList;
    }

    public void setRoleList(Set<String> roleList) {
        this.roleList = roleList;
    }

    public Set<String> getAuthList() {
        return authList;
    }

    public void setAuthList(Set<String> authList) {
        this.authList = authList;
    }
}
